/**
 *	(C) 2014 Yuanjj
 *
 * 	redefine data type
 *
 *	histroy
 * 		2014-06-25	Yuanjj		-	create
 */

#ifndef _TYPEDEF_H_
#define _TYPEDEF_H_

#include "include.h"

#ifdef		WIN32

typedef		void					pem_void_t;
typedef		bool					pem_bool_t;
typedef		char					pem_s8_t;
typedef 	unsigned char			pem_u8_t;
typedef 	short					pem_s16_t;
typedef 	unsigned short			pem_u16_t;
typedef 	int						pem_s32_t;
typedef 	unsigned int			pem_u32_t;
typedef 	__int64					pem_s64_t;
typedef 	unsigned __int64		pem_u64_t;
typedef 	float					pem_float_t;
typedef 	double					pem_double_t;

#else

typedef		void					pem_void_t;
typedef		bool					pem_bool_t;
typedef		char					pem_s8_t;
typedef 	unsigned char			pem_u8_t;
typedef 	short					pem_s16_t;
typedef 	unsigned short			pem_u16_t;
typedef 	int						pem_s32_t;
typedef 	unsigned int			pem_u32_t;
typedef 	long long				pem_s64_t;
typedef 	unsigned long long		pem_u64_t;
typedef 	float					pem_float_t;
typedef 	double					pem_double_t;

#endif

// common
typedef 	pem_s32_t				pem_error_t;

#endif // _TYPEDEF_H_
